<?php
    
    require_once '../config.php';

    require_once('simpletest/unit_tester.php');
    require_once('simpletest/reporter.php');

    $test = &PEAR::getStaticProperty('CONFIG_INI','TEST');
    ini_set("max_execution_time",$test['max_execution_time']);

    $test = &new TestSuite('All file tests');
 
    $test->addTestFile('ExceptionHandlerTest.php');
    $test->addTestFile('PageFactoryTest.php');
    $test->addTestFile('UserErrorHandlerTest.php');
    $test->addTestFile('PageTest.php');   
    $test->addTestFile('WurflTest.php'); 
    $test->addTestFile('YtTest.php');

    if ( isset($_SERVER["HTTP_HOST"]) )
    {
        $reporter  = new HtmlReporter(); 
    }

    $reporter = isset($reporter) ? $reporter : (new TextReporter()) ;
    $test->run( $reporter  ); 
?>

